package com.gouying.web.feign;

import com.gouying.common.utils.R;
import com.gouying.to.es.SkuEsModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 远程接口：远程调用gulimall-search服务的接口
 * @author ly
 */
@FeignClient("gy-search")
public interface SearchFeignService {

    /**
     * 上架商品
     * @param skuEsModels
     * @return
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
